package com.sanben.user.data.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: cyh
 * @description: 修改密码 Dto
 * @date: 2020/8/12 16:26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UserEditPasswordDto对象", description = "用户表")
public class UserEditPasswordDto {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    private Integer userId;

    @NotBlank(message = "旧的密码不能为空")
    @ApiModelProperty("旧的密码")
    private String oldPassword;

    @NotBlank(message = "新的密码不能为空")
    @ApiModelProperty("新的密码")
    private String password1;

    @NotBlank(message = "确认密码不能为空")
    @ApiModelProperty("确认密码")
    private String password2;

}
